package org.itboys.weixin.entity;

import java.util.Date;

import org.mongodb.morphia.annotations.Entity;

/**
 * 
 * @author dhl
 * 
 */
@Entity(value = "WeixinUser", noClassnameStored = true)
public class WeixinUser extends WeixinBaseEntity{

	private static final long serialVersionUID = -2486595272171271066L;
	
	private String openid;
	private Long weixinId;
	private Integer subscribe;
	private String nickname;
	private Integer sex;
	private String country;
	private String province;
	private String city;
	private String headimgurl;
	private Date subscribeTime;
	private Date cancelTime;
	private Integer status;//1 正常 0 取消关注
	public Integer isTest;
	private String mobile;//alter table weixin_user add column `mobile`  varchar(16) DEFAULT NULL;
	private Long recId = 0L;//推荐人ID 该用户关注这个微信时  是被谁推荐的
	private Long groupid;

	public Long getGroupid() {
		return groupid;
	}

	public void setGroupid(Long groupid) {
		this.groupid = groupid;
	}

	public Long getRecId() {
		return recId;
	}

	public void setRecId(Long recId) {
		this.recId = recId;
	}

	public Integer getIsTest() {
		return isTest;
	}

	public void setIsTest(Integer isTest) {
		this.isTest = isTest;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Long getWeixinId() {
		return weixinId;
	}

	public void setWeixinId(Long weixinId) {
		this.weixinId = weixinId;
	}

	public Integer getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(Integer subscribe) {
		this.subscribe = subscribe;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public Date getSubscribeTime() {
		return subscribeTime;
	}

	public void setSubscribeTime(Date subscribeTime) {
		this.subscribeTime = subscribeTime;
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

}
